package com.tanxi521.tnweb.mapper;

import com.tanxi521.tnweb.model.WebUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface WebUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(WebUser record);

    int insertSelective(WebUser record);

    WebUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(WebUser record);

    int updateByPrimaryKey(WebUser record);

    Integer selectUserCount(String userId);

    int selectAllUserNums();

    WebUser selectUserByUserId(String userId);

    void updateUserLastLoginTimeByUserId(@Param("last_login_time") Date date, String userId);

    List<WebUser> selectWebUserByStartAndSize(Long start, Integer pageSize);
}